<?php

if (!isset($css) || !is_array($css)){
    $css = array();
}

if (!isset($js) || !is_array($css)){
    $js = array();
}

$this->load->view('includes/header',array("title"=>$title, "css"=>$css, "js"=>$js));

echo "<noscript>";
echo "<div id='menuBar'><div class='wrap'></div></div>";
echo "<div id='page' class='wrap'>";
echo "<h1>This site requires Javascript to be enabled</h1>";
echo "</div>";
echo "</noscript>";

echo "<div id='body'>";
echo "<div id='basicContent'>\n";

$this->load->view($view, $data);

echo "</div></div>";

$this->load->view('includes/footer');